﻿using MGXAPI.Controllers.API;
using MGXAPI.Controllers.API.Mangox;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;

namespace MGXAPI.Controllers
{
    public class Test_APIController : ApiController
    {

        /// <summary>
        /// http://localhost:13772/api/Test_API/GetJieMi
        /// </summary>
        /// <returns></returns>
        public string GetJieMi()
        {
            var c = new UserWeChatController();
            var encryptedData = "1G14DiwPocV82WV3X5I1ZTRT/F8zUZf1WflX3kMqMdfr/ol+OKx95Hr1WgtqeQX5QA3gw32LGhrD4y5x65UA5PJo0+56vLwewJqLWODLNYAcm5sXIEq404IvD9jh9RIYTR4H3z4sRKsXBIc2M/Li5LlTK3CIGBMZTLSCDvKQ+mgGk0V1imEbs9N/YPDqTJl7DP8m24yzPiTXARiJE23yZXF0Sxd4HnbfKoq4XOH42+ffQ46r7de9Q7eakgkDGgapSwMkp3qmmld+6NvTeTyadrvaFEk0jhulzt3awSXZDhkDm+mL1Gbg9z6PwxSTQB4kD0z8e/4jmkoEPTuLQRAWFvPjAy/ayHhFmZ2lbIGMa49jV20OH74HH/HCd3ihIN5SKIz1m4j+ForjYFXWXKoUdTg7iGsSD9b3WtTVpwgjhJL/usNeOdJ93xEkjz+wZj32AXDBtPWuKt4I7u6vGLGDqszhO/iXKGADI4LJIceM/7E=";
            var session_key = "023gu4Il0SXXVq1HMGGl0EMSHl0gu4Ib";
            var iv = "U5hT+ats326CO3GhJ6LSuQ==";
            var ret = c.AES_decrypt(encryptedData, session_key, iv);

            return ret;
        }



    }
}
